<?php
 include './base.php';
 $state = $_GET["state"];
 $sql = "select * from chuku where c_state = '$state'";
 $res = mysql_query($sql);
 $arr = array();
 while($row = mysql_fetch_assoc($res)){
    array_push($arr,$row);
 };
  print_r(json_encode($arr));
?>